/*
*    Phantom v2.0 GUI Automation Software
*    Copyright (C) 2009  John C. Van Arsdall (john@phantomtest.com)
*
*    This program is free software; you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation; either version 2 of the License, or
*    (at your option) any later version.
*
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*
*    You should have received a copy of the GNU General Public License along
*    with this program; if not, write to the Free Software Foundation, Inc.,
*    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
*/

#pragma once
#ifdef MINION_EXPORTS
  #define MINION_API extern "C" __declspec(dllexport)
#else
  #define MINION_API extern "C" __declspec(dllimport)
#endif

#define USE_MINION_WIN 0

#define MINION_DOFUNCTION 101000

#define MINION_SETINTTYPE 102001
#define MINION_SETSTRINGTYPE 102002
#define MINION_SETREALTYPE 102003
#define MINION_SETBOOLTYPE 102004
#define MINION_SETVOIDTYPE 102005

#include "FunctionProcessor.h"
#include "MINION_FunctionAPI.h"
#include "PhantomWindow.h"

class SSI_FunctionAPI;
MINION_API HWND SetMinionHook(DWORD dwThreadId, int iCreate);
MINION_API int WaitForSync(int Count);
MINION_API void ClearMinionSync();
MINION_API int WriteFunctionAPI(char* thePtr, SSI_FunctionAPI& theAPI);
MINION_API int WriteDataObject(char* thePtr, CData* In);
MINION_API int ReadFunctionAPI(char* thePtr, SSI_FunctionAPI& theAPI);
MINION_API CData* ReadDataObject(char* thePtr, SSI_INT64& BytesRead);
MINION_API int LocalAddMap(int RemoteType, int LocalType);
MINION_API void MinionLog(const char* Tag);
MINION_API void MinionClear();
MINION_API void TestGetMem();
//MINION_API void TypeKeys(String& s, CStatus& Ret);

